package utils;

import java.util.ArrayList;
import java.util.List;
import org.biojava.bio.structure.Atom;

/**
*  Class for manage the cells of the grid
*  @author Brizuela C.A., Beltran A., Zatarain H.
*  @version 1.0.0
*/
public class CellGeneric< E > {
    private ArrayList< E > elements;
    private boolean evaluated;

    
    public CellGeneric(){
        this.elements = new ArrayList<E>();
        this.evaluated = false;
    }

    public ArrayList<E> getElements(){
        return this.elements;
    }

    public boolean isEvaluated(){
        return this.evaluated;
    }

    public void setElements(ArrayList<E> elements){
        this.elements = elements;
    }

    public void setEvaluated(boolean evaluated){
         this.evaluated = evaluated;
    }
}
//public class CellGeneric{
//   // determines the largest of three Comparable objects
//   public static <T extends Comparable<T>> T maximum(T x, T y, T z)
//   {                      
//      T max = x; // assume x is initially the largest       
//      if ( y.compareTo( max ) > 0 ){
//         max = y; // y is the largest so far
//      }
//      if ( z.compareTo( max ) > 0 ){
//         max = z; // z is the largest now                 
//      }
//      return max; // returns the largest object   
//   }
//   public static void main( String args[] )
//   {
//      System.out.printf( "Max of %d, %d and %d is %d\n\n", 
//                   3, 4, 5, maximum( 3, 4, 5 ) );
//
//       System.out.printf( "Maxm of %.1f,%.1f and %.1f is %.1f\n\n",
//                   6.6, 8.8, 7.7, maximum( 6.6, 8.8, 7.7 ) );
//
//       System.out.printf( "Max of %s, %s and %s is %s\n","pear",
//         "apple", "orange", maximum( "pear", "apple", "orange" ) );
//   }
//}